public class two {
    public static void main(String[] args) {
        double a=45.785756,b;
        b=a*1000+0.5;
        System.out.println((int) b/1000.0);//强制取整要么直接输出要么再给附一个值
    }
}
